<template>
	<!-- <el-button class="mb20" @click="add" type="primary">新增</el-button> -->
	<el-form :inline="true" class="demo-form-inline">
		<el-form-item label="总人数">
			<h1 style="margin: 0;line-height: 1;margin-right: 15px;">{{counts}}</h1>
		</el-form-item>

		<el-form-item label="分类筛选">

			<el-select v-model="selectData" placeholder="请选择">
				<el-option label="全部学院" :value="null"></el-option>
				<el-option v-for="t in schoollist" :label="t.name" :value="t.id"></el-option>
			</el-select>
		</el-form-item>
		<!-- <el-form-item>
		   <el-button @click="getData" type="primary" >搜索</el-button>
		 </el-form-item> -->
	</el-form>
	<el-table class="mb20" :data="tableData" border style="width: 100%">

		<el-table-column prop="numbers" label="手机号码" />


		<el-table-column prop="uname" label="学校">
			<template #default="scope">
				{{whatname(scope.row.uname).id==100?scope.row.qita:whatname(scope.row.uname).name}}
			</template>
		</el-table-column>
	</el-table>
	<!-- <el-pagination background layout="prev, pager, next" :total="1000">
	</el-pagination> -->

</template>

<script >
	import {
		ElMessageBox,
		ElMessage
	} from 'element-plus'
	export default {
		data() {
			return {
				keyword: "",
				selectData: null,
				formLabelWidth: '120rpx',
				form: {
					name: '',
					nametype: '1',
					daan: "1",
					static: "1"
				},
				
				counts: 0,
				rules: {
					name: [{
						required: true,
						message: '请填写题目名称',
						trigger: 'blur',
					}],
					orders: [{
						required: true,
						message: '请填写题目排序',
						trigger: 'blur',
					}],
				},
				pid: []
			}
		},
		mounted() {
			this.getData();
			this.getSchoolList();
		},
		methods: {
			

			getData() {

				this.$http.post("/index.php/index/Userinfo/index", {
					tokenid: 'nf2021113012336899abc',
					uid: this.selectData
				}).then(data => {

					this.tableData = data.data;
					this.counts = data.counts;

				})

			},

			handleAvatarSuccess(file) {

				this.form.image = file.data;
			},



		}
	}
</script>
